{% extends "base_site.html" %}
{% load i18n %}

{% block content_title %}
<h2>{{ content_title }}</h2>
{% endblock %}
{% block content %}
  <div id="content-main">
    {% ifequal form.fields.group.help_text 'no permissions' %}
      <p>{% trans 'You are not a master in any group on your desktop.' %}</p>
    {% else %}
      {% if form.is_multipart %}
        <form enctype="multipart/form-data" method="post" action="{{ user_action }}">{% csrf_token %}
      {% else %}
        <form action="{{ user_action }}" method="post">{% csrf_token %}
      {% endif %}
          <ul class="plainlist">
            {{ form.as_ul }}
          </ul>
          <div>
            <input type="submit" value="Submit" />
          </div>
        </form>
    {% endifequal %}
  </div>
{% endblock %}
